package ${mapperTestUrl};

import com.alibaba.fastjson.JSON;
import ${entityUrl}.${entityName};
import com.baoyuan.crm.handler.DataSourceExecute;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;


@RunWith(SpringRunner.class)
@SpringBootTest
public class ${entityName}${daoClassNameSuffix}Test {

    @Autowired
    private ${entityName}${daoClassNameSuffix} mapper;

    @Test
    public void test_selectByPrimaryKey() {
        Long id = 1L;
        //${entityName} entity = DataSourceExecute.businessRun(() -> mapper.selectByPrimaryKey(id));
        //System.out.println("selectByPrimaryKey: " + JSON.toJSONString(entity));
    }

}